/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-09-22
 * Time: 16:20
 */
public class get_Sum {
    public static int getSum(int a, int b) {
        int c=a^b;
        int d=(a&b)<<1;
        while (d!=0){
            int tmp=c^d;
            int xx=(c&d)<<1;
            c=tmp;
            d=xx;
        }
        return c;
    }

    public static void main(String[] args) {
        System.out.println(getSum(2, 3));
    }
}
